Class KeepAliveTask

java.lang.Object
java.util.TimerTask
com.cisco.pt.ptmp.task.KeepAliveTask
All Implemented Interfaces:
Runnable

public class KeepAliveTask extends TimerTask
A TimerTask to send keep alive messages. The interval is determined by the KEEP_ALIVE_INTERVAL static member defaulted to 20 seconds. The enclosing PT session instance controls the scheduler.
Author:
packettracerexapps@external.cisco.com
  • Field Details

    • KEEP_ALIVE_INTERVAL

      public static int KEEP_ALIVE_INTERVAL
      How often to send the keep alive message
    • KEEP_ALIVE_TIMEOUT

      public static int KEEP_ALIVE_TIMEOUT
  • Constructor Details

    • KeepAliveTask

      public KeepAliveTask(PacketTracerSession packetTracerSession)
      Parameters:
      packetTracerSession - PacketTracerSession
  • Method Details

    • receivedKeepAlive

      public void receivedKeepAlive()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask